/** Model representation of Session entity
 *
 *  @author Scott Monahan
 *  @version $Id$
 *  
 *  File last changed on $Date:$ by $Author:$ in $Rev:$
 *
 */

package info637.pprc.model;

import java.util.Date;

import info637.pprc.repository.AbstractEntity;

public class Session extends AbstractEntity {

	private String sessionId = null;
	private Date lastAccessed = null;

	public Session(String sessionId) {
		
		this.sessionId = sessionId;
		this.lastAccessed = new Date();
	}
	
	public Session(String id, String sessionId) {
		
		this.setId(id);
		this.sessionId = sessionId;
		this.lastAccessed = new Date();
	}
	
	public String getSessionId() {
		
		return this.sessionId;
	}
	
	public Date getLastAccessed() {
		
		return lastAccessed;
	}
}
